package tpdisenio2009.mvp.display;

import java.awt.event.ActionListener;
import java.util.List;
import tpdisenio2009.model.beans.FantasyTeamPlayer;
import tpdisenio2009.model.beans.SoccerPlayer;

/**
 * @author Nicolás Galliano
 */

public interface UpdateFantasyTeamView2 extends View {

    public static final int FANTASY_TEAM_NAME = 0;

    void showError( String errorMessage, String titleMessageWindow );
    void showOK( String okMessage, String titleMessageWindow);

    void setFantasyTeamName( String name );

    void close();
    
    int getSelectedPosition();
    void setPlayerAtPosition( int position, SoccerPlayer soccerPlayer );
    SoccerPlayer getPlayerAtPosition( int position );

    List<SoccerPlayer> getSoccerPlayers();

    void setLLevasGastado( int gastado );

    void setTeQuedan( int quedan );
    
    void addQueryPlayersListener( ActionListener listener );
    void removeQueryPlayersListener( ActionListener listener );

    void removeSaveListener( ActionListener listener );
    void addSaveListener( ActionListener listener );

    void addExitListener( ActionListener listener );
    void removeExitListener( ActionListener listener );

    void loadPlayers( List<FantasyTeamPlayer> players );

    void showNotification( String notifiactionMessage, String notificationMessageTitle );

    boolean showConfirmation( String notifiactionMessage );
}
